const state = {
    list: '',
    numHome: '',
    a: 520
}

const getters = {
    getListA: state =>{
        return state.a;
    }
}

const mutations = {
    saveHomeNum(state,val){
        console.log("storeHome",val);
        state.numHome = val;
    },
    saveList(state,val){
        console.log("storeList",val);
        state.list = val;
    },
    saveA(state,val){
        state.a = state.a + val;
        console.log("list_state.a",state.a);
    }
}

export default {
    state,
    getters,
    mutations
}